package com.ruoyi.APPMS.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 部件销售对象 partsell
 *
 * @author 谢雨琦
 * @date 2023-07-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("part")
public class Partsell implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 零件ID */
    @Excel(name = "零件ID")
    @TableId(type = IdType.AUTO)
    private Long partid;

    /** 部件状态标记
     1：在供应商
     2：供应商to仓库
     3：在仓库
     4：仓库to客户
     5：在客户 */
    private Long status;

    /** 所在供应商ID */
    @Excel(name = "所在供应商ID")
    private Long supplierid;
    @TableField(exist = false)
    private String suppliername;

    /** 所在仓库ID */
    @Excel(name = "所在仓库ID")
    private Long warehouseid;
    @TableField(exist = false)
    private String warehousename;

    @TableField(exist = false)
    private String fquantity;

    /** 客户ID */
    private Long customerid;
    @TableField(exist = false)
    private String address;
    @TableField(exist = false)
    private String contactnumber;

    /** 销售员ID */
    private Long salespersonid;

    /** 零件名称 */
    @Excel(name = "零件名称")
    private String partname;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 进价 */
    private Long primeprice;

    /** 售价 */
    @Excel(name = "售价")
    private Long price;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 部件类型 */
    @Excel(name = "部件类型")
    private String type;

    /** 修改时间 */
    @Excel(name = "修改时间")
    private String modifytime;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private String createtime;

    /** 删除标记 */
    @TableLogic
    private Long deleted;
}
